package com.ynby.newyp.serviceImpl;

import com.ynby.newyp.dao.LoginDao;
import com.ynby.newyp.pojo.LoginPojo;
import com.ynby.newyp.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    LoginDao loginDao;

    @Override
    public String login(LoginPojo loginPojo) {

        if (loginDao.login(loginPojo) != null) {
            return "登录成功";
        } else {
            return "登录失败";
        }
    }
}
